package com.heima.comment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wmy
 * @since 2023-06-12
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="ApComment对象", description="")
public class ApComment implements Serializable {


      @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty(value = "作者id")
      private Integer authorId;

      @ApiModelProperty(value = "作者名字")
      private String authorName;

      @ApiModelProperty(value = "文章id")
      private Long entryId;

      @ApiModelProperty(value = "是否作者评论")
      private Integer type;

      @ApiModelProperty(value = "评论内容")
      private String content;

      @ApiModelProperty(value = "点赞数")
      private Integer likes;

      @ApiModelProperty(value = "回复数")
      private Integer reply;

      @ApiModelProperty(value = "是否关闭评论")
      private Integer flag;

    private Date createdTime;


}
